{include file="public/header" /}
{load href="__PLUGINS__bootstrap/bootstrap-table.min.css"}
{load href="__PLUGINS__bootstrap/bootstrap-table.min.js"}
<style>
    #des, #des input {
        width: 40px;
        text-align: center;
    }

    #id {
        width: 78px;
    }

    .bs-checkbox {
        width: 36px;
        height: 40px
    }

    .fixed-table-toolbar .columns, .fixed-table-toolbar .search {
        margin-left: 0;
        margin-top: 0
    }

    #title span {
        float: right;
    }

    .asdlkjasd {
        background: #1ab394;
        color: #fff
    }
</style>
<body class="gray-bg">
<div class="wrapper wrapper-content {:config('adminClass.main')}">
    <div class="ibox float-e-margins">
        {include file="public/tophead"}
        {include file="public/top" /}
        <div class="ibox-content">

            {include file="public/topsection"}

            <div class="row row-lg">
                <div class="col-sm-12">
                    <div class="fixed-table-toolbar" style="display:inline-block; margin-right:100px">
                        <a class="btn btn-default btn-outline {present name='type'}{else /}asdlkjasd{/present}"
                           href="{:url('images')}{present name='xuni'}/xuni/{$xuni}{/present}{present name='sex'}/sex/{$sex}{/present}{present name='recommend'}/recommend/{$recommend}{/present}{present name='is_online'}/is_online/{$is_online}{/present}{present name='is_contact'}/is_contact/{$is_contact}{/present}">全&nbsp;&nbsp;部</a>
                        <a class="btn btn-default btn-outline {eq name='type' value='3'}asdlkjasd{/eq}"
                           href="{:url('images',['type'=>'3'])}{present name='xuni'}/xuni/{$xuni}{/present}{present name='sex'}/sex/{$sex}{/present}{present name='recommend'}/recommend/{$recommend}{/present}{present name='is_online'}/is_online/{$is_online}{/present}{present name='is_contact'}/is_contact/{$is_contact}{/present}">今日注册</a>
                    </div>
                    <div style="display:block;clear: both;"></div>
                    <div class="fixed-table-toolbar">
                        <form method="get" action="" style="display: flex;">
                            <div class="pull-left search" style="display: flex;">
                                <div class="columns columns-right btn-group pull-left">
                                    <select class="form-control" name="search">
                                        <option value="id" {php}if(input(
                                        '?param.search')){if(input('param.search')=='id'){echo "selected";}
                                        }{/php}>ID</option>
                                        <option value="name" {php}if(input(
                                        '?param.search')){if(input('param.search')=='name'){echo "selected";}
                                        }{/php}>昵称</option>
                                        <option value="phone" {php}if(input(
                                        '?param.search')){if(input('param.search')=='phone'){echo "selected";}
                                        }{/php}>手机</option>
                                       <!-- <option value="city" {php}if(input(
                                        '?param.search')){if(input('param.search')=='city'){echo "selected";}
                                        }{/php}>城市</option>-->
                                        <option value="yqm" {php}if(input(
                                        '?param.search')){if(input('param.search')=='yqm'){echo "selected";}
                                        }{/php}>邀请码</option>
                                        <option value="device_id" {php}if(input(
                                        '?param.search')){if(input('param.search')=='device_id'){echo "selected";}
                                        }{/php}>设备号</option>
                                    </select>
                                </div>

                                <div class="pull-right search">
                                    <input class="form-control input-outline" type="text"
                                           {php}
                                           if(input('?param.name')){
                                    if(input('param.name')){
                                    echo "value='".input('name')."'";
                                    }

                                    }
                                    {/php}
                                    name="name" placeholder="搜索">
                                </div>

                                <div class="pull-right search">
                                    <button style="border-radius:0px; border:1px solid #e5e6e7; border-left:0px"
                                            class="btn btn-default btn-outline" type="submit">搜索
                                    </button>
                                </div>


                                {php}
                                if(input('?param.name')){
                                {/php}
                                <div class="pull-right search">
                                    <a class="btn btn-w-m btn-link" href="{:url('images')}">返回列表</a>
                                </div>
                                {php}
                                }
                                {/php}
                            </div>
                        </form>
                    </div>
                    <div class="example">
                        <form class="form-horizontal" method="post">
                            <table data-toggle="table">
                                <thead>
                                <tr>
                                    <th data-align="center">资料</th>
                                    <th data-align="center">头像</th>
                                    <th data-align="center">相册</th>
                                    <th data-align="center">管理</th>
                                </tr>
                                </thead>
                                <tbody id="form">
                                {php}$hide=array('0'=>'<font color="#1ab394">正常</font>','1'=>'<font
                                        color="#f00">冻结</font>');{/php}
                                {volist name="data" id="v"}
                                <tr id="id{$v.user_id}" class="class">
                                    <td>(ID){$v.user_id}<br />(昵称){$v.name}<br />(手机号){$v.phone}</td>
                                    <td>
                                        <a href="__ROOT__{$v.head_100}" title="{$v.name}" target="_blank">
                                            <img style="width:80px;height:80px;" src="__ROOT__{$v.head_100}"/>
                                        </a>
                                    </td>
                                    <td>
                                        {volist name="v.imagelists" id='img'}
                                        <a href="__ROOT__{$img}" title="{$img}" target="_blank">
                                            <img style="width:80px;height:80px;" src="__ROOT__{$img}"/>
                                        </a>
                                        {/volist}
                                    </td>
                                    <td>
                                            <div onClick="add('{:url('image',['id'=>$v['user_id'],'url'=>-1])}')" class="btn btn-primary btn-xs dropdown-toggle">
                                                查看照片
                                            </div>
                                    </td>
                                </tr>
                                {/volist}
                                </tbody>
                            </table>
                        </form>
                    </div>
                </div>
            </div>
            <hr>
            <div class="row row-lg">
                <div class="col-sm-12 pages">{$page}</div>
            </div>
        </div>
    </div>
</div>

{include file="public/footer" /}
{load href="__PLUGINS__iCheck/icheck.min.js"}
{load href="__PLUGINS__iCheck/custom.css"}

<script type="text/javascript">



</script>
 